-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate reshare permissions against actual path that the user tries to share #27820
Validate reshare permissions against actual path that the user tries to share #27820
Conversation
Other bug found, to be filed separately:
|
Unit tests should be fine now and were actually using the wrong source node in case of a reshare as then the share would always be created from the resharing users filesystem instead of using the owners user folder as a base. |
We really need integrations tests for this. |
627640e
to
09a6305
Compare
Will look into some tests for that and will double check the suggestion from @PVince81 |
…to share Otherwise this could lead to taking the wrong user mount in case there are multiple ones with different permissions that the user could use to reshare Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Pushed another attempt as the share node might be the one located in the owners filesystem server/lib/private/Share20/Share.php Lines 182 to 186 in 215aef3
|
8d8664e
to
20fc6a7
Compare
Signed-off-by: Julius Härtl <[email protected]>
20fc6a7
to
a6c557c
Compare
This comment was marked as abuse.
This comment was marked as abuse.
Closing as I don't have time to properly finish this |
Otherwise this could lead to taking the wrong user mount in case there
are multiple ones with different permissions that the user could use to
reshare
Possible reproduction:
Before:
💥 Cannot increase permissions
After:
The proper source user mount is taken for permission comparison where the user has reshare permissions and the share link creation passes.